// pages/Broadcast/Broadcast.js
var helper = require('../../utils/helper'),o;
Page({

  /**
   * 页面的初始数据
   */
  data: {
    time:''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (t) {
    o = this
    getApp().page.onLoad(this, t);
    var time = helper.dataTime(new Date())
    o.setData({
      time:time
    })
    console.log('1111',time)
  },

 
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    wx.getLocation({
      type: 'wgs84',
      success (res) {
        const latitude = res.latitude
        const longitude = res.longitude
        const speed = res.speed
        const accuracy = res.accuracy
        console.log(res)
      }
     })     
  },
  punchinrecord:function(){
    wx.navigateTo({
      url: '/pages/integral-mall/punchinrecord/punchinrecord',
    })
  }

})